package com.lele.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lele.exception.DepartmentException;
import com.lele.pojo.Department;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lele
 * @since 2022-11-26
 */
public interface IDepartmentService extends IService<Department> {

    List<Department> getTreeDepartment();

    void insertDepartment(String name, Integer parentId);

    void deleteDepartment(Integer id) throws DepartmentException;
}
